package com.example.lottery.common.errorcode;

public interface ServiceErrorCodeConstants {
    /**
     * 用户模块错误码
     */
    ErrorCode USER_PARAM_ERROR=new ErrorCode(1100,"用户参数校验错误");
    ErrorCode USER_INSERT_ERROR=new ErrorCode(1101,"用户插入错误");
    ErrorCode USER_EMAIL_ERROR=new ErrorCode(1102,"邮箱格式错误");
    ErrorCode USER_PHONE_NUMBER_ERROR=new ErrorCode(1103,"手机号格式错误");
    ErrorCode USER_PASSWORD_ERROR=new ErrorCode(1104,"密码长度不足");
    ErrorCode USER_IDENTITY_ERROR=new ErrorCode(1105,"身份错误");
    ErrorCode USER_ADMIN_PASSWORD_ERROR=new ErrorCode(1106,"管理员密码为空");
    ErrorCode USER_EMAIL_USE_ERROR=new ErrorCode(1107,"邮箱已被使用");

    ErrorCode USER_PHONE_NUMBER_USE_ERROR=new ErrorCode(1108,"手机号已被使用");

    ErrorCode USER_PHONE_NUMBER_NOT_EXIST=new ErrorCode(1109,"手机号不存在");

    ErrorCode USER_NOT_EXIST=new ErrorCode(1110,"用户不存在");
    ErrorCode TOKEN_NO_EXIST=new ErrorCode(1111,"token不存在");
    ErrorCode TOKEN_CREATE_ERROR=new ErrorCode(1112,"token生成失败");
    ErrorCode USERINFO_PASSWORD_ERROR=new ErrorCode(1113,"密码错误");
    ErrorCode USER_NOT_ADMIN=new ErrorCode(1114,"该用户不是管理员");
    ErrorCode VERIFICATION_CODE_ERROR=new ErrorCode(1115,"验证码错误");

    ErrorCode USER_ACCOUNT_ERROR=new ErrorCode(1116,"账号错误");

    ErrorCode MANDATORY_IDENTITY_ERROR=new ErrorCode(1117,"强制登录信息错误");

    ErrorCode USER_EMAIL_NOT_EXIST=new ErrorCode(1118,"邮箱不存在");

    /**
     * 奖品模块错误码
     */
    ErrorCode PRIZE_INSERT_ERROR=new ErrorCode(2000,"奖品数据插入失败");
    ErrorCode PRIZE_PARAM_ERROR=new ErrorCode(2001,"奖品参数错误");

    /**
     * 活动模块错误码
     */
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR=new ErrorCode(3000,"活动奖品等级非法");
    ErrorCode ACTIVITY_PARAM_USER_ERROR=new ErrorCode(3001,"活动圈选用户不存在");
    ErrorCode ACTIVITY_PARAM_PRIZE_ERROR=new ErrorCode(3002,"活动圈选奖品不存在");
    ErrorCode ACTIVITY_PARAM_PRIZE_AMOUNT_ERROR=new ErrorCode(3003,"活动圈选奖品数量不合法");
    ErrorCode ACTIVITY_PARAM_AMOUNT_ERROR=new ErrorCode(3004,"活动的奖品数量大于等于人员数量");
    ErrorCode ACTIVITY_PARAM_PAGE_ERROR=new ErrorCode(3005,"活动页码错误");
    ErrorCode ACTIVITY_DETAIL_PARAM_ERROR=new ErrorCode(3006,"活动详情参数错误");
    ErrorCode ACTIVITY_REDIS_STATUS_ERROR=new ErrorCode(3007,"缓存活动扭转异常");

    /**
     * 抽奖模块错误码
     */
    ErrorCode DRAW_PRIZE_ACTIVITY_NOT_EXIST=new ErrorCode(4000,"活动不存在");
    ErrorCode DRAW_PRIZE_ACTIVITY_TIERS_ERROR=new ErrorCode(4001,"奖品等级错误");
    ErrorCode DRAW_PRIZE_USER_NOT_EXIST=new ErrorCode(4002,"用户不存在");
    ErrorCode DRAW_PRIZE_USER_STATUS_COMPLETE=new ErrorCode(4003,"用户已被抽过");
    ErrorCode DRAW_PRIZE_PRIZE_STATUS_COMPLETE=new ErrorCode(4004,"奖品已被抽过");
    ErrorCode DRAW_PRIZE_PRIZE_NOT_EXIST=new ErrorCode(4005,"奖品不存在");
    ErrorCode DRAW_PRIZE_ACTIVITY_STATUS_COMPLETE=new ErrorCode(4006,"活动已结束");
    ErrorCode DRAW_PRIZE_COUNT_ERROR=new ErrorCode(4007,"奖品份数和人员数目不同");
    ErrorCode DRAW_PRIZE_MAP_NOT_EXIST=new ErrorCode(4008,"map为空");

    ErrorCode DRAW_PRIZE_CONVERT_STATUS_ERROR=new ErrorCode(4009,"扭转状态异常");
    ErrorCode DRAW_PRIZE_NEED_CONVERT_ERROR=new ErrorCode(4010,"扭转参数异常");
    ErrorCode DRAW_PRIZE_CACHE_ACTIVITY_ID_NULL=new ErrorCode(4011,"缓存的活动Id为空");
    ErrorCode NOTIFY_WINNER_PARAM_NULL=new ErrorCode(4012,"通知用户参数为空");
    ErrorCode NOTIFY_WINNER_SEND_EMAIL_ERROR=new ErrorCode(4013,"邮件发送失败");
    /**
     * 图片错误码
     */
    ErrorCode PICTURE_SAVE_ERROR=new ErrorCode(5000,"图片保存失败");
}
